package com.example.department.Service;

import com.example.department.Entity.Activity;
import com.example.department.Impl.ActivityImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ActivityService implements ActivityImpl {
    @Resource
    ActivityImpl activityImpl;

    @Override
    public List<Activity> getActivityList(Activity activity) {
        return activityImpl.getActivityList(activity);
    }

    @Override
    public int addActivity(Activity activity) {
        return activityImpl.addActivity(activity);
    }

    @Override
    public int delActivity(int aid) {
        return activityImpl.delActivity(aid);
    }

    @Override
    public int updateActivity(Activity activity) {
        return activityImpl.updateActivity(activity);
    }

    @Override
    public Activity getActivityById(int aid) {
        return activityImpl.getActivityById(aid);
    }

    @Override
    public int getActivityCount() {
        return activityImpl.getActivityCount();
    }

    @Override
    public List<Activity> getActivityPageList(String activityname, String activityaddress, int Start, int Page) {
        return activityImpl.getActivityPageList(activityname,activityaddress,Start,Page);
    }
}
